#pragma once

#include "LDlgtype.h"
#include "PlotChartStatic.h"
#include "resource.h"

#define  CURVEDLG_ID 1
//IDD_DIALOG_CURVE

class CurveDlg : public CDialog,public LObj,public LDlgtype
{
	DECLARE_DYNAMIC(CurveDlg)

private:
	int init();
	void exit();

	CPlotChartStatic m_curve;

public:
	CurveDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CurveDlg();

	enum { IDD =  CURVEDLG_ID };//IDD_DIALOG_CURVE


	void setCurvef( float * dbuf, int dlen);
	void setCurve( double * dbuf, int dlen );
	void setCurved( ushort * dbuf, int dlen);					// 131214;
	void setTitle(CString s){ this->SetWindowText(s ); }

protected:

	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	afx_msg void OnSize(UINT nType, int cx, int cy);
};

